<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateIconsTable extends Migration
{

    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('icons', function (Blueprint $table) {
            $table->increments('id');
            $table->string('name', 100)->comment('名称');
            $table->integer('iconcat_id')->default(0)->nullable()->unsigned()->comment('素材类型');
            $table->string('icon', 191)->nullable()->comment('正常效果');
            $table->string('highlight', 191)->nullable()->comment('高亮ICON');
            $table->string('selected', 191)->nullable()->comment('选中效果');
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('icons');
    }
}
